home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / rem_acc / pagev155.zip / RA-PAGER.BAT < prev    next >
DOS Batch File  |  1996-03-03  |  2KB  |  52 lines

  1. @echo off
  2. rem: RA-Pager v1.55 (batch file)
  3. rem: By Jason Raphael (1:284/22)
  4.  
  5. if "%RA%" == "" goto error1
  6. if not exist %RA%\RA.EXE goto error2
  7. if not exist %RA%\page.log goto nolog
  8. if exist %RA%\page.asw goto copylog
  9. goto end
  10.  
  11. :ERROR1
  12. echo.
  13. echo ■ RA-Pager ERROR:
  14. echo   RemoteAccess environment variable not set.  Please set the RA environment 
  15. echo   variable to your RemoteAccess system path, or see RA-PAGER.DOC for more 
  16. echo   information.  Ex: SET RA=D:\RA
  17. echo.
  18. echo ■ RA-Pager ERROR: >>d:\ra-pager.err
  19. echo   RemoteAccess environment variable not set.  Please set the RemoteAccess environment >>d:\ra-pager.err
  20. echo   variable to your RemoteAccess system path, or see RA-PAGER.DOC for more >>d:\ra-pager.err
  21. echo   information.  Ex: SET RA=D:\RA >>d:\ra-pager.err
  22. goto end
  23.  
  24. :ERROR2
  25. echo.
  26. echo ■ RA-Pager ERROR:
  27. echo   RemoteAccess environment variable set incorrectly.  Please set 
  28. echo   the RA environment variable to your RemoteAccess system path, or see 
  29. echo   RA-PAGER.DOC for more information.  Ex: SET RA=D:\RA
  30. echo.
  31. echo ■ RA-Pager ERROR: >>d:\ra-pager.err
  32. echo   RemoteAccess environment variable set incorrectly.  Please set >>d:\ra-pager.err
  33. echo   the RA environment variable to your RemoteAccess system path, or see >>d:\ra-pager.err
  34. echo   RA-PAGER.DOC for more information.  Ex: SET RA=D:\RA >>d:\ra-pager.err
  35. pause
  36. goto end
  37.  
  38. :NOLOG
  39. echo ■ RA-Pager v1.55 Log >>%RA%\page.log
  40. echo   ─-─-─-─-─-─-─-─-─- >>%RA%\page.log
  41. echo.                     >>%RA%\page.log
  42. if exist %RA%\page.asw goto copylog
  43. goto end
  44.  
  45. :COPYLOG
  46. type %RA%\PAGE.ASW >>%RA%\PAGE.LOG
  47. del %RA%\PAGE.ASW
  48. goto end
  49.  
  50. :end
  51. exit
  52.